<?php
/**
 * Layout for upload product page
 * @author Kota Kakaji
 *
 */
class ControllerCommonLayoutUploadToSell extends Controller {
	protected function index() {
		$this->data['title'] = $this->document->title;
		$this->data['description'] = $this->document->description;
		if(isset($this->document->home_flg) == true){
			$this->data['home_flg']    = $this->document->home_flg;
		}
		if (!isset($this->request->server['HTTPS']) || ($this->request->server['HTTPS'] != 'on')) {
			$this->data['base'] = HTTP_SERVER;
		} else {
			$this->data['base'] = HTTPS_SERVER;
		}

		$this->data['charset'] = $this->language->get('charset');
		$this->data['language'] = $this->language->get('code');
		$this->data['direction'] = $this->language->get('direction');
		$this->data['links'] = $this->document->links;
		$this->data['styles'] = $this->document->styles;
		$this->data['scripts'] = $this->document->scripts;
		$this->data['breadcrumbs'] = $this->document->breadcrumbs;
		$this->data['icon'] = $this->config->get('config_icon');
		
		//Load header and footer.
		$this->children = array(
				'common/header',
				'common/footer'
		);
		//Set template file
		$this->template = $this->config->get('config_template') . 'common/layout_uploadtosell.phtml';

		//Render
		$this->render();
	}

	protected function index1() {
		$this->data['title'] = $this->document->title;
		$this->data['description'] = $this->document->description;
		if(isset($this->document->home_flg) == true){
			$this->data['home_flg']    = $this->document->home_flg;
		}
		if (!isset($this->request->server['HTTPS']) || ($this->request->server['HTTPS'] != 'on')) {
			$this->data['base'] = HTTP_SERVER;
		} else {
			$this->data['base'] = HTTPS_SERVER;
		}

		$this->data['charset'] = $this->language->get('charset');
		$this->data['language'] = $this->language->get('code');
		$this->data['direction'] = $this->language->get('direction');
		$this->data['links'] = $this->document->links;
		$this->data['styles'] = $this->document->styles;
		$this->data['scripts'] = $this->document->scripts;
		$this->data['breadcrumbs'] = $this->document->breadcrumbs;
		$this->data['icon'] = $this->config->get('config_icon');

		$this->template = $this->config->get('config_template') . 'common/layout_uploadtosell.phtml';
		$this->children = array(
			'common/header',
			'common/footer'
		);


		$this->render();
	}
}
?>